package com.tjzx.entity;

import java.sql.Timestamp;

/**
 * EipReserveMedicalId entity. @author MyEclipse Persistence Tools
 */

public class EipReserveMedicalId implements java.io.Serializable {

	// Fields

	private Integer id;
	private String reserveName;
	private String reserveType;
	private String bigType;
	private String smallType;
	private Timestamp reserveTime;
	private Timestamp createTime;
	private String reserveInfo;
	private Boolean isDeal;
	private String dealInfo;
	private String reserveStatus;
	private String reserveTel;
	private String reserveUnit;
	private String reserveAdress;
	private Boolean isDel;
	private String vipid;

	// Constructors

	/** default constructor */
	public EipReserveMedicalId() {
	}

	/** minimal constructor */
	public EipReserveMedicalId(Integer id) {
		this.id = id;
	}

	/** full constructor */
	public EipReserveMedicalId(Integer id, String reserveName,
			String reserveType, String bigType, String smallType,
			Timestamp reserveTime, Timestamp createTime, String reserveInfo,
			Boolean isDeal, String dealInfo, String reserveStatus,
			String reserveTel, String reserveUnit, String reserveAdress,
			Boolean isDel, String vipid) {
		this.id = id;
		this.reserveName = reserveName;
		this.reserveType = reserveType;
		this.bigType = bigType;
		this.smallType = smallType;
		this.reserveTime = reserveTime;
		this.createTime = createTime;
		this.reserveInfo = reserveInfo;
		this.isDeal = isDeal;
		this.dealInfo = dealInfo;
		this.reserveStatus = reserveStatus;
		this.reserveTel = reserveTel;
		this.reserveUnit = reserveUnit;
		this.reserveAdress = reserveAdress;
		this.isDel = isDel;
		this.vipid = vipid;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getReserveName() {
		return this.reserveName;
	}

	public void setReserveName(String reserveName) {
		this.reserveName = reserveName;
	}

	public String getReserveType() {
		return this.reserveType;
	}

	public void setReserveType(String reserveType) {
		this.reserveType = reserveType;
	}

	public String getBigType() {
		return this.bigType;
	}

	public void setBigType(String bigType) {
		this.bigType = bigType;
	}

	public String getSmallType() {
		return this.smallType;
	}

	public void setSmallType(String smallType) {
		this.smallType = smallType;
	}

	public Timestamp getReserveTime() {
		return this.reserveTime;
	}

	public void setReserveTime(Timestamp reserveTime) {
		this.reserveTime = reserveTime;
	}

	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public String getReserveInfo() {
		return this.reserveInfo;
	}

	public void setReserveInfo(String reserveInfo) {
		this.reserveInfo = reserveInfo;
	}

	public Boolean getIsDeal() {
		return this.isDeal;
	}

	public void setIsDeal(Boolean isDeal) {
		this.isDeal = isDeal;
	}

	public String getDealInfo() {
		return this.dealInfo;
	}

	public void setDealInfo(String dealInfo) {
		this.dealInfo = dealInfo;
	}

	public String getReserveStatus() {
		return this.reserveStatus;
	}

	public void setReserveStatus(String reserveStatus) {
		this.reserveStatus = reserveStatus;
	}

	public String getReserveTel() {
		return this.reserveTel;
	}

	public void setReserveTel(String reserveTel) {
		this.reserveTel = reserveTel;
	}

	public String getReserveUnit() {
		return this.reserveUnit;
	}

	public void setReserveUnit(String reserveUnit) {
		this.reserveUnit = reserveUnit;
	}

	public String getReserveAdress() {
		return this.reserveAdress;
	}

	public void setReserveAdress(String reserveAdress) {
		this.reserveAdress = reserveAdress;
	}

	public Boolean getIsDel() {
		return this.isDel;
	}

	public void setIsDel(Boolean isDel) {
		this.isDel = isDel;
	}

	public String getVipid() {
		return this.vipid;
	}

	public void setVipid(String vipid) {
		this.vipid = vipid;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof EipReserveMedicalId))
			return false;
		EipReserveMedicalId castOther = (EipReserveMedicalId) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getReserveName() == castOther.getReserveName()) || (this
						.getReserveName() != null
						&& castOther.getReserveName() != null && this
						.getReserveName().equals(castOther.getReserveName())))
				&& ((this.getReserveType() == castOther.getReserveType()) || (this
						.getReserveType() != null
						&& castOther.getReserveType() != null && this
						.getReserveType().equals(castOther.getReserveType())))
				&& ((this.getBigType() == castOther.getBigType()) || (this
						.getBigType() != null
						&& castOther.getBigType() != null && this.getBigType()
						.equals(castOther.getBigType())))
				&& ((this.getSmallType() == castOther.getSmallType()) || (this
						.getSmallType() != null
						&& castOther.getSmallType() != null && this
						.getSmallType().equals(castOther.getSmallType())))
				&& ((this.getReserveTime() == castOther.getReserveTime()) || (this
						.getReserveTime() != null
						&& castOther.getReserveTime() != null && this
						.getReserveTime().equals(castOther.getReserveTime())))
				&& ((this.getCreateTime() == castOther.getCreateTime()) || (this
						.getCreateTime() != null
						&& castOther.getCreateTime() != null && this
						.getCreateTime().equals(castOther.getCreateTime())))
				&& ((this.getReserveInfo() == castOther.getReserveInfo()) || (this
						.getReserveInfo() != null
						&& castOther.getReserveInfo() != null && this
						.getReserveInfo().equals(castOther.getReserveInfo())))
				&& ((this.getIsDeal() == castOther.getIsDeal()) || (this
						.getIsDeal() != null
						&& castOther.getIsDeal() != null && this.getIsDeal()
						.equals(castOther.getIsDeal())))
				&& ((this.getDealInfo() == castOther.getDealInfo()) || (this
						.getDealInfo() != null
						&& castOther.getDealInfo() != null && this
						.getDealInfo().equals(castOther.getDealInfo())))
				&& ((this.getReserveStatus() == castOther.getReserveStatus()) || (this
						.getReserveStatus() != null
						&& castOther.getReserveStatus() != null && this
						.getReserveStatus()
						.equals(castOther.getReserveStatus())))
				&& ((this.getReserveTel() == castOther.getReserveTel()) || (this
						.getReserveTel() != null
						&& castOther.getReserveTel() != null && this
						.getReserveTel().equals(castOther.getReserveTel())))
				&& ((this.getReserveUnit() == castOther.getReserveUnit()) || (this
						.getReserveUnit() != null
						&& castOther.getReserveUnit() != null && this
						.getReserveUnit().equals(castOther.getReserveUnit())))
				&& ((this.getReserveAdress() == castOther.getReserveAdress()) || (this
						.getReserveAdress() != null
						&& castOther.getReserveAdress() != null && this
						.getReserveAdress()
						.equals(castOther.getReserveAdress())))
				&& ((this.getIsDel() == castOther.getIsDel()) || (this
						.getIsDel() != null
						&& castOther.getIsDel() != null && this.getIsDel()
						.equals(castOther.getIsDel())))
				&& ((this.getVipid() == castOther.getVipid()) || (this
						.getVipid() != null
						&& castOther.getVipid() != null && this.getVipid()
						.equals(castOther.getVipid())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37
				* result
				+ (getReserveName() == null ? 0 : this.getReserveName()
						.hashCode());
		result = 37
				* result
				+ (getReserveType() == null ? 0 : this.getReserveType()
						.hashCode());
		result = 37 * result
				+ (getBigType() == null ? 0 : this.getBigType().hashCode());
		result = 37 * result
				+ (getSmallType() == null ? 0 : this.getSmallType().hashCode());
		result = 37
				* result
				+ (getReserveTime() == null ? 0 : this.getReserveTime()
						.hashCode());
		result = 37
				* result
				+ (getCreateTime() == null ? 0 : this.getCreateTime()
						.hashCode());
		result = 37
				* result
				+ (getReserveInfo() == null ? 0 : this.getReserveInfo()
						.hashCode());
		result = 37 * result
				+ (getIsDeal() == null ? 0 : this.getIsDeal().hashCode());
		result = 37 * result
				+ (getDealInfo() == null ? 0 : this.getDealInfo().hashCode());
		result = 37
				* result
				+ (getReserveStatus() == null ? 0 : this.getReserveStatus()
						.hashCode());
		result = 37
				* result
				+ (getReserveTel() == null ? 0 : this.getReserveTel()
						.hashCode());
		result = 37
				* result
				+ (getReserveUnit() == null ? 0 : this.getReserveUnit()
						.hashCode());
		result = 37
				* result
				+ (getReserveAdress() == null ? 0 : this.getReserveAdress()
						.hashCode());
		result = 37 * result
				+ (getIsDel() == null ? 0 : this.getIsDel().hashCode());
		result = 37 * result
				+ (getVipid() == null ? 0 : this.getVipid().hashCode());
		return result;
	}

}